#ifndef PUSHGATEWAY_SCALER_H
#define PUSHGATEWAY_SCALER_H

#include "php_pushgateway.h"

#include <map>
#include <string>

using namespace std;

// 计数器类
class scaler
{
    private:
        string index;
        map<string, string> items;
    
    public:
        void setIndex(string index_value);
        void setItems(map<string, string> items_value);
        void addItem(string key, string value);
        string toString();
        string getIndex();
        string getItemsStr();
        map<string, string> getItems();
};

#endif